<script setup>
import BarIcon from '../icon/BarIcon.vue'
</script>
<template>
    <div class="main-header-bar">
        <el-row justify="space-between" style="display: flex; align-items: center;">
            <el-col :span="5">
                <!-- icon -->
                <el-row>
                    <el-col :span="3">
                        <img width="30" :src="headerIcon" />
                    </el-col>
                    <el-col :span="21">
                        <span class="header-title">{{ systemName }}</span>
                    </el-col>
                </el-row>
            </el-col>

            <el-col :span="5">
                <div class="menu-item">
                    <!-- 菜单项 -->
                    <div class="bar-title">工作台</div>
                    <div class="bar-line"></div>
                </div>
            </el-col>

            <el-col :span="5">
                <el-row justify="space-between" style="margin-right: 10%;margin-left: 50%;">
                    <!-- 消息 -->
                    <bar-icon :icon="'message'" :width="20" :height="20" :color="'white'" />
                    <!-- 官网 -->
                    <bar-icon :icon="'network'" :width="20" :height="20" :color="'white'" />
                    <!-- 我的主页 -->
                    <bar-icon :icon="'minePage'" :width="20" :height="20" :color="'white'" />
                </el-row>
            </el-col>
        </el-row>
    </div>
</template>

<script>
export default {
    components: { BarIcon },
    data() {
        return {
            systemName: 'Specialty Intelligence Factory System',
            headerIcon: 'img/icon/main_icon.png',
        }
    }
}
</script>

<style scoped>
.main-header-bar {
    background: #1c1f2a;
    color: white;
}

.bar-title {
    font-size: 18px;
    font-weight: bold;
    line-height: 30px;
}

.menu-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    height: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.icon {
    margin-left: 10px;
}

.bar-line {
    width: 80px;
    height: 5px;
    background-color: #006eff;

}

.header-title {
    position: relative;
    display: inline-block;
    line-height: 30px;
    text-align: center;
    font-size: 16px;
}
</style>